﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Traceability.Register.Domain
{
    /// <summary>
    /// 地址表
    /// </summary>
    [Table("Addresses")]
    public class Addresses
    {
        /// <summary>
        /// 地址编号
        /// </summary>
        [Key]
        public int AddressId {  get; set; }
        /// <summary>
        /// 父级编号
        /// </summary>
        public int Pid {  get; set; }
        /// <summary>
        /// 地址编号
        /// </summary>
        public string AddressName { get; set; } = string.Empty;
        /// <summary>
        /// 子级编号
        /// </summary>
        public int Level {  get; set; }

    }
}
